From 481c06cdb6bfb370ba2d84f4b6bb4ba260eb14cd Mon Sep 17 00:00:00 2001
From: memdmp <memdmp@estrogen.zone>
Date: Wed, 14 Jan 2026 04:36:14 +0100
Subject: feat: start work on blog

---
 src/routes/blog/[id=int]/+page.svelte | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 src/routes/blog/[id=int]/+page.svelte

(limited to 'src/routes/blog/[id=int]/+page.svelte')

diff --git a/src/routes/blog/[id=int]/+page.svelte b/src/routes/blog/[id=int]/+page.svelte
new file mode 100644
index 0000000..16fc586
--- /dev/null
+++ b/src/routes/blog/[id=int]/+page.svelte
@@ -0,0 +1,28 @@
+<script lang="ts">
+  import { replaceState } from '$app/navigation';
+  import { onMount, tick } from 'svelte';
+
+  import type { PageProps } from './$types';
+  import { resolve } from '$app/paths';
+  import { page } from '$app/state';
+  import { forceTrailingSlash } from '$/lib';
+  import Post from '$/lib/blog/Post.svelte';
+
+  let { data }: PageProps = $props();
+
+  onMount(() => {
+    tick().then(() =>
+      replaceState(
+        forceTrailingSlash(
+          resolve('/blog/[id=int]-[slug]', {
+            id: data.post.metadata.id.toString(),
+            slug: data.post.metadata.slug,
+          }),
+        ),
+        page.state,
+      ),
+    );
+  });
+</script>
+
+<Post post={data.post} />
-- 
cgit v1.2.3

